diff options
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-None].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-None].yaml | 79 |
1 files changed, 11 insertions, 68 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-None].yaml b/tests/cassettes/test_status_post[Content warning-None].yaml index 51f8927..a7c930d 100644 --- a/tests/cassettes/test_status_post[Content warning-None].yaml +++ b/tests/cassettes/test_status_post[Content warning-None].yaml | |||
@@ -12,23 +12,23 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 13 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 14 | response: |
15 | body: {string: '{"id":"99882190607950320","created_at":"2018-04-18T19:54:37.609Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | 15 | body: {string: '{"id":"99979315072476518","created_at":"2018-05-05T23:34:39.313Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content |
16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882190607950320","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190607950320","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99979315072476518","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99979315072476518","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
18 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | 18 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI |
19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":126},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
20 | headers: | 20 | headers: |
21 | Cache-Control: ['max-age=0, private, must-revalidate'] | 21 | Cache-Control: ['max-age=0, private, must-revalidate'] |
22 | Content-Type: [application/json; charset=utf-8] | 22 | Content-Type: [application/json; charset=utf-8] |
23 | ETag: [W/"ba7db43bf12e67c1c3b9890442fcb493"] | 23 | ETag: [W/"0d696944d50bd00bf72b89b7323c26ea"] |
24 | Transfer-Encoding: [chunked] | 24 | Transfer-Encoding: [chunked] |
25 | Vary: ['Accept-Encoding, Origin'] | 25 | Vary: ['Accept-Encoding, Origin'] |
26 | X-Content-Type-Options: [nosniff] | 26 | X-Content-Type-Options: [nosniff] |
27 | X-Frame-Options: [SAMEORIGIN] | 27 | X-Frame-Options: [SAMEORIGIN] |
28 | X-Request-Id: [690e3732-e89a-4ecd-a6e1-fcc743ebdea6] | 28 | X-Request-Id: [d02b4acd-39d2-4815-9874-fc7537904ef8] |
29 | X-Runtime: ['0.192493'] | 29 | X-Runtime: ['0.153363'] |
30 | X-XSS-Protection: [1; mode=block] | 30 | X-XSS-Protection: [1; mode=block] |
31 | content-length: ['1411'] | 31 | content-length: ['1412'] |
32 | status: {code: 200, message: OK} | 32 | status: {code: 200, message: OK} |
33 | - request: | 33 | - request: |
34 | body: null | 34 | body: null |
@@ -40,76 +40,19 @@ interactions: | |||
40 | Content-Length: ['0'] | 40 | Content-Length: ['0'] |
41 | User-Agent: [python-requests/2.9.1] | 41 | User-Agent: [python-requests/2.9.1] |
42 | method: DELETE | 42 | method: DELETE |
43 | uri: http://localhost:3000/api/v1/statuses/99882190607950320 | 43 | uri: http://localhost:3000/api/v1/statuses/99979315072476518 |
44 | response: | 44 | response: |
45 | body: {string: '{}'} | 45 | body: {string: '{}'} |
46 | headers: | 46 | headers: |
47 | Cache-Control: ['max-age=0, private, must-revalidate'] | 47 | Cache-Control: ['max-age=0, private, must-revalidate'] |
48 | Content-Type: [application/json; charset=utf-8] | 48 | Content-Type: [application/json; charset=utf-8] |
49 | ETag: [W/"5c240765406390218ddc241e079f231b"] | 49 | ETag: [W/"e6f6baf373676f7340afb2dd8c03f83d"] |
50 | Transfer-Encoding: [chunked] | 50 | Transfer-Encoding: [chunked] |
51 | Vary: ['Accept-Encoding, Origin'] | 51 | Vary: ['Accept-Encoding, Origin'] |
52 | X-Content-Type-Options: [nosniff] | 52 | X-Content-Type-Options: [nosniff] |
53 | X-Frame-Options: [SAMEORIGIN] | 53 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Request-Id: [ac4b24ac-6234-4e4f-a4a8-1c2b68479f75] | 54 | X-Request-Id: [a2f61d67-6881-4d50-bf4f-ec90bab111d9] |
55 | X-Runtime: ['0.059247'] | 55 | X-Runtime: ['0.101527'] |
56 | X-XSS-Protection: [1; mode=block] | ||
57 | content-length: ['2'] | ||
58 | status: {code: 200, message: OK} | ||
59 | - request: | ||
60 | body: status=Toot%21&spoiler_text=Content+warning | ||
61 | headers: | ||
62 | Accept: ['*/*'] | ||
63 | Accept-Encoding: ['gzip, deflate'] | ||
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
65 | Connection: [keep-alive] | ||
66 | Content-Length: ['43'] | ||
67 | Content-Type: [application/x-www-form-urlencoded] | ||
68 | User-Agent: [python-requests/2.9.1] | ||
69 | method: POST | ||
70 | uri: http://localhost:3000/api/v1/statuses | ||
71 | response: | ||
72 | body: {string: '{"id":"99882235398794639","created_at":"2018-04-18T20:06:01.087Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | ||
73 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235398794639","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235398794639","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | ||
74 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
75 | Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI | ||
76 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | ||
77 | headers: | ||
78 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
79 | Content-Type: [application/json; charset=utf-8] | ||
80 | ETag: [W/"c7a6f1584acac04c171a4a6286f6b616"] | ||
81 | Transfer-Encoding: [chunked] | ||
82 | Vary: ['Accept-Encoding, Origin'] | ||
83 | X-Content-Type-Options: [nosniff] | ||
84 | X-Frame-Options: [SAMEORIGIN] | ||
85 | X-Request-Id: [a056f2fb-b3a5-4e8b-bbd4-0eb5ff0c92b9] | ||
86 | X-Runtime: ['0.392034'] | ||
87 | X-XSS-Protection: [1; mode=block] | ||
88 | content-length: ['1411'] | ||
89 | status: {code: 200, message: OK} | ||
90 | - request: | ||
91 | body: null | ||
92 | headers: | ||
93 | Accept: ['*/*'] | ||
94 | Accept-Encoding: ['gzip, deflate'] | ||
95 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | ||
96 | Connection: [keep-alive] | ||
97 | Content-Length: ['0'] | ||
98 | User-Agent: [python-requests/2.9.1] | ||
99 | method: DELETE | ||
100 | uri: http://localhost:3000/api/v1/statuses/99882235398794639 | ||
101 | response: | ||
102 | body: {string: '{}'} | ||
103 | headers: | ||
104 | Cache-Control: ['max-age=0, private, must-revalidate'] | ||
105 | Content-Type: [application/json; charset=utf-8] | ||
106 | ETag: [W/"44d15761b8148d9596549fea3948dfbe"] | ||
107 | Transfer-Encoding: [chunked] | ||
108 | Vary: ['Accept-Encoding, Origin'] | ||
109 | X-Content-Type-Options: [nosniff] | ||
110 | X-Frame-Options: [SAMEORIGIN] | ||
111 | X-Request-Id: [92e6b906-73b4-46c2-b7cb-f4f0aa0bff90] | ||
112 | X-Runtime: ['0.117121'] | ||
113 | X-XSS-Protection: [1; mode=block] | 56 | X-XSS-Protection: [1; mode=block] |
114 | content-length: ['2'] | 57 | content-length: ['2'] |
115 | status: {code: 200, message: OK} | 58 | status: {code: 200, message: OK} |